package com.xm.shop.service.impl;

import com.xm.shop.mapper.ProductTypeMapper;
import com.xm.shop.pojo.entity.ProductType;
import com.xm.shop.service.ProductTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ludi
 * @date:2020/8/29 15:33
 * @description:商品种类业务
 */
@Service
public class ProductTypeServiceImpl implements ProductTypeService {
    @Autowired
    private ProductTypeMapper productTypeMapper;
    @Override
    public List<ProductType> selectAllProductType() {
        return productTypeMapper.selectList(null);
    }
}
